   HTTP

: 17.04.2020
===========================================================


----------

1) HTTPClient -      HTTP.
2) CookieManager -   cookie.
     HTTPClient,
       .
3) URLParser -  URL   .
    -  .

 Examples      - 
  PHP-  .

  "Unicode version"   
   , 
  FPC 32/64 , ANSI/Unicode .


===========================================================


---------

  HTTPClient  CookieManager 
 Install.his   ( ) 
  HiAsm (   ).

  URLParser  
  URLParser.ini.    
 "Delphi"   "Internet" (  
  )

        -
    
 *.pas   Hiasm\Elements\Delphi\code

===========================================================

 HTTPClient
---------------------

      HTTP-.

:

-  POST-   
-   
-     
-   
-      
-     CookieManager
-     Internet Explorer
-  SSL (HTTPS)
-        Basic, Digest
- HTTP-   Basic, Digest


    HTTP_FileUpload, 
HTTP_Get, HTTP_PostBuilder.
  CookieManager.

        Examples.
  html     ,  
  URL  .

      POSTData
   (\r\n),  
     .
       
EncType=multipart/form-data   
 \r\n  \20\20.   
      .
 EncType=application/x-www-form-urlencoded 
      URL-encoding
     .


 ,   onStateChange:

0 -  
1 -  
2 -   
3 - 
4 -  
5 -  
6 -  
7 -  

       CookieManager,
   Name.   HTTPClient
    CookieManager 
    CookieManager.  -  
  .  
/     
-    CookieManager.



 
-----------------

 1.7:
-   RespCharset, FieldCharset
-  URLCodePage       
- CookieManager -      Max-Age 
-   ContentType,     

 1.6:
-    UserAgent  runtime
-   onAuthHTTP, onAuthProxy
-   Decompress

 1.5:

-  
    ResumeDL
    FileMIME
    FNOverride

-  UploadFile       
   Stream    
-    ( ResumeDL)
-       ( 4 ).
       ContentLength  onDownloadProgress 
     Real.
-  URLCodePage      ,
      .

 1.4:

-  
    URLCodePage
    SSLProtocols
    IgnoreInvalidCN
    IgnoreInvalidDate
    IgnoreUnknownCA
    IgnoreWrongUsage
    IgnoreWeakSignature


 1.3:

-   ConnectTimeout, SendTimeout, RecvTimeout
-       
   POST-
-      
   EncType<>multipart/form-data


 1.2:

-   CustomMethod
-   EncType   None
-  EncType=multipart/form-data  
         
     \20\20


 1.1:

-  onChangeState   onStateChange
-    UseSystemProxy
-         
-  onHeadersAvail    


===========================================================
: NetSpirit